﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"				
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:vm="clr-namespace:Com.CodePlex.SPC3.SPbAM.ViewModel"
	xmlns:vw="clr-namespace:Com.CodePlex.SPC3.SPbAM.View">

	<ContextMenu x:Key="ContextMenu" ItemsSource="{Binding TreeCommands}">
		<ContextMenu.ItemTemplate>
			<DataTemplate>
				<TextBlock Text="{Binding DisplayName}" />
			</DataTemplate>
		</ContextMenu.ItemTemplate>
		<ContextMenu.ItemContainerStyle>
			<Style TargetType="MenuItem">
				<Setter Property="Command" Value="{Binding Command}" />
			</Style>
		</ContextMenu.ItemContainerStyle>
	</ContextMenu>

	<Style x:Key="toolbarButton" TargetType="Button">
		<Style.Triggers>
			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Opacity" Value=".5" />
			</Trigger>
		</Style.Triggers>
	</Style>

</ResourceDictionary>